package com.neulogistics.core.substation.api.application.query;

import com.neulogistics.core.substation.domain.model.valueobject.Address;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

@Data
public class SubstationQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页号
     */
    @Positive(message = "当前页数非法！")
    public long pageNum = 1;

    /**
     * 页面大小
     */
    @Positive
    @Max(value = 20, message = "请求数据过多！")
    public long pageSize = 10;


    /**
     * 分站id
     */
    @Positive
    public Integer substationId;

    /**
     * 分站名
     */
    public String substationName;

    /**
     * 分站地址{省，市，区，详细，经纬度}
     */
    public Address substationAddress;

    /**
     * 分站库房id
     */
    public Integer subWarehouseId;
}
